package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/25
*/
@Data
@ApiModel("问诊EAP记录")
@Table(name = "tbl_booking_eap")
@NoArgsConstructor
@AllArgsConstructor
public class TblBookingEap extends BaseEntity {
    @Column(name = "booking_id")
    private String bookingId;

    @Column(name = "eap_benefit_id")
    private String eapBenefitId;

    private String month;

    @Column(name = "company_price_id")
    private String companyPriceId;

    @Column(name = "company_price_type")
    private Integer companyPriceType;

    @Column(name = "company_price_office_type")
    private Integer companyPriceOfficeType;

    @Column(name = "company_price_date")
    private Date companyPriceDate;

    @Column(name = "company_price_value")
    private BigDecimal companyPriceValue;

    @Column(name = "company_price_time_start")
    private String companyPriceTimeStart;

    @Column(name = "company_price_time_end")
    private String companyPriceTimeEnd;

    @Column(name = "company_price_country_id")
    private Integer companyPriceCountryId;

    @Column(name = "company_id")
    private String companyId;

    @Column(name = "conversion_rate")
    private Integer conversionRate;

    @Column(name = "disp_order")
    private Integer dispOrder;

    @ApiModelProperty("专科医生费用id,医生问诊结束选择的费用id")
    @Column(name = "doctor_fee_id")
    private String doctorFeeId;

    @Column(name = "doctor_id")
    private String doctorId;

    @ApiModelProperty("专科医生问诊费用金额,医生问诊结束选择的费用id对应的金额")
    private String rate;

    @ApiModelProperty("专科医生费用医生展示label,医生问诊结束选择的费用id对应的展示医生label")
    private String label;

    @ApiModelProperty("专科医生费用病人展示label,医生问诊结束选择的费用id对应的展示病人label")
    @Column(name = "patient_receipt_label")
    private String patientReceiptLabel;

    @ApiModelProperty("对应专科医生费用的typeRate")
    @Column(name = "type_rate")
    private Integer typeRate;

    @ApiModelProperty("对应专科医生费用的typeFee")
    @Column(name = "type_fee")
    private Integer typeFee;

    /**
     * 医生费用设置的扣除分钟数rate(minutes)
     */
    @Column(name = "rate_minutes")
    @ApiModelProperty("医生费用设置的扣除分钟数rate(minutes)")
    private Integer rateMinutes;

    @ApiModelProperty("实际使用分钟数(问诊结束时为rateMinutes*(conversionRate/60)；预约时为预约的结束时间减去开始时间,预约取消改为0，预约实际问诊之后，重新计算实际分钟数)")
    @Column(name = "use_minutes")
    private BigDecimal useMinutes;

    @Column(name = "company_price_name")
    private String companyPriceName;


}